# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=see-surf
pkgver=v2.0.r54.g9333190
pkgrel=1
pkgdesc='A Python based scanner to find potential SSRF parameters in a web application.'
arch=('any')
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
url='https://github.com/In3tinct/See-SURF'
license=('GPL3')
depends=('python' 'python-requests' 'python-beautifulsoup4')
makedepends=('git')
source=("$pkgname::git+https://github.com/In3tinct/See-SURF.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
}

